package com.zhuiyun.project.api.record.service;

import com.zhuiyun.project.api.record.entity.Record;
import com.zhuiyun.project.api.record.model.RecordModel;
import com.zhuiyun.project.api.topicmanage.entity.Topic;
import com.zhuiyun.project.common.errorCode.CommonException;
import com.zhuiyun.project.common.response.CommonResult;

/**
* @Author XC8
* @Description
* @Date 2024/2/26 14:33
* @Return

*/
public interface RecordService {
    /**
     * @Author LXJ
     * @Description 根据用户id查询收藏列表
     * @Date 2023/12/12 8:28
     * @Return
     * @param userId
     */
    CommonResult getRecordById(Integer userId,String teDay) throws CommonException;

    /**
    * @Author XC8
    * @Description 根据id删除
    * @Date 2024/2/26 15:33
    * @Return com.zhuiyun.project.common.response.CommonResult
    */
    CommonResult recordDelete(Integer rId);

    /**
    * @Author XC8
    * @Description 生成观看记录
    * @Date 2024/3/8 9:22
    * @Return com.zhuiyun.project.common.response.CommonResult
    */
    CommonResult addRecord(RecordModel recordModel) throws CommonException;

}
